package cn.tedu.personal_patient.information.dao.persist.repository;

import cn.tedu.personal_patient.information.pojo.entity.Patient;
import cn.tedu.personal_patient.information.pojo.entity.PatientAddress;
import cn.tedu.personal_patient.information.pojo.vo.OutPatient;
import cn.tedu.personal_patient.information.pojo.vo.PatientListVO;

import java.util.List;

public interface IPatientRepository {
    List<PatientListVO> listByUserId(Long userId);

    int insert(Patient patient);

    int update(Patient patient);
    int updateAddress(PatientAddress patientAddress);

    int delete(Long id);

    List<OutPatient> listUserId(Long userId);

}
